<?php

namespace App\Model\Cases;

use App\Model\Model;

class CasesModel extends Model
{
    protected ?string $connection = 'organ';

    protected ?string $table = 'organ_cases';

    protected array $casts = [
        'id' => 'int',
        'organ_id'  => 'int',
        'agency_company_id'  => 'int',
        'agency_product_id'  => 'int',
        'litigant_id'  => 'int',
        'litigant_name'  => 'string',
        'litigant_id_card'  => 'string',
        'case_no'  => 'int',
        'contract_no'  => 'int',
        'capital'  => 'float',
        'interest'  => 'float',
        'late_fee'  => 'float',
        'bank_name'  => 'string',
        'bank_card_number'  => 'string',
        'entrust_start_time'  => 'date:Y-m-d h:i:s',
        'entrust_end_time'  => 'date:Y-m-d h:i:s',
        'overdue_date'  => 'string',
        'periods'  => 'int',
        're_periods'  => 'int',
        'case_status'  => 'int',
        'owner_id'  => 'int',
        'delete_time'  => 'int',
        'tag_ids'  => 'int',
        'ry_main_contacts_id' => 'int',
        'status'  => 'int',
        'created_at'  => 'date:Y-m-d h:i:s',
        'updated_at'  => 'date:Y-m-d h:i:s',
    ];

    protected array $guarded = [];
}